package com.btshop.goods.service;

import com.btshop.goods.pojo.Brand;
import com.github.pagehelper.PageInfo;
import com.util.Result;

import java.util.List;

/**
 * @ClassName BrandService
 * @Description 品牌业务接口层
 * @Author by nike
 * @Date 2020/7/13 0:24
 * @Version V1.0
 **/
public interface BrandService {

    /**
     * @Description 查询所有品牌
     * @Date 2020/7/14 22:31
     * @Param []
     * @return java.util.List<com.btshop.goods.pojo.Brand>
     * @Author ld
     **/
    List<Brand> findAll();

    /**
     * @Description 根据id查询品牌
     * @Date 2020/7/14 22:31
     * @Param [id]
     * @return com.btshop.goods.pojo.Brand
     * @Author ld
     **/
    Brand findById(Long id);

    /**
     * @Description 品牌新增
     * @Date 2020/7/14 22:32
     * @Param [brand]
     * @return int
     * @Author ld
     **/
    int add(Brand brand);

    /**
     * @description: 根据id更新品牌
     * @Param: [id, brand]
     * @return: int
     * @author: 李东
     * @time: 2020-7-15 11:02
     **/
    int update(Long id, Brand brand);

    /**
     * @description: 根据id删除品牌
     * @Param: [id]
     * @return: int
     * @author: 李东
     * @time: 2020-7-15 17:28
     **/
    int delete(Long id);

    /**
     * @description: 根据品牌信息多条件查询
     * @Param: [brand]
     * @return: java.util.List<com.btshop.goods.pojo.Brand>
     * @author: 李东
     * @time: 2020-7-15 17:36
     **/
    List<Brand> search(Brand brand);

    /**
     * @description: 根据品牌信息多条件分页查询
     * @Param: [page, size, brand]
     * @return: com.github.pagehelper.PageInfo<com.btshop.goods.pojo.Brand>
     * @author: 李东
     * @time: 2020-7-15 17:56
     **/
    PageInfo<Brand> searchPage(Integer page, Integer size, Brand brand);
}
